﻿<%@ Page ContentType="application/rss+xml" Language="C#" Inherits="System.Web.Mvc.ViewPage<cludg.Web.ViewModels.MainFeedModel>" %>
<%@ Import Namespace="cludg.Web.RenderHelpers" %><?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
<title><%: Model.SiteName %> - Новые истории</title>
<link></link>
<description>Подписка на новые истории</description>
<lastBuildDate><%= DateTime.Now.ToUniversalTime().ToString("r")%></lastBuildDate>
<language>ru-ru</language>
<% foreach (var story in Model.Stories)
   { %>
	<item>
		<title><%: Html.Encode(story.Title) %></title>
		<link><%: Url.RouteUrl("Story", new RouteValueDictionary { { "name", story.UniqueName } }, "http", Request.Url.Host)%></link>
		<guid isPermaLink="true"><%: Url.RouteUrl("Story", new RouteValueDictionary { { "name", story.UniqueName } }, "http", Request.Url.Host)%></guid>
		<pubDate><%: story.CreationTime.ToUniversalTime().ToString("r") %></pubDate>
		<description><% Response.Write("<![CDATA["); %><% Html.StorySubject(story.Subject); %><br/><% Response.Write(story.Body); %><% Response.Write("]]>"); %></description>
		<author><%: Html.Encode(story.Author.DisplayName)%></author>
	</item>
<% } %>
</channel>
</rss>